package com.supply.pojo;

import lombok.Data;

@Data
public class User {
    private Long id;

    private String usercode;

    private String username;

    private String password;

    private Long deptId;

    private Long roleId;

    private String avatar;

    public User(Long id, String usercode, String username, String password, Long deptId, Long roleId, String avatar) {
        this.id = id;
        this.usercode = usercode;
        this.username = username;
        this.password = password;
        this.deptId = deptId;
        this.roleId = roleId;
        this.avatar = avatar;
    }

    public User() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode == null ? null : usercode.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }
}